/* $Header: test_plot.c,v 2.2 01/10/02 10:33:07 przybyls Exp $ */

/***********************************************************************/
/*                                                                     */
/*                  Copyright Hewlett-Packard Co. 1991                 */
/*                                                                     */
/***********************************************************************/

/***********************************************************************/
/* MODULE NAME:  test_plot.c                                           */
/* ============                                                        */
/*                                                                     */
/* Author:  Lesley Freed                                               */
/*                                                                     */
/* MODULE PURPOSE:  To define the interpolation data points for the    */
/*                  test plot.                                         */
/*                                                                     */
/*                                                                     */
/***********************************************************************/


/*****************************/
/*   GLOBAL INCLUDE FILES    */
/*****************************/

#include <typedefs.h>
#include <p_wkfile.h>
#include <wkfile.h>
#include <ramps.h>
#include <zone_config.h>
#include <zone_status.h>
#include <status.h>
#include <sig_types.h>

/*****************************/
/*   LOCAL INCLUDE FILES     */
/*****************************/


/*****************************/
/*   GLOBAL VARIABLES        */
/*****************************/


/*****************************/
/*   EXTERNAL VARIABLES      */
/*****************************/


/*****************************/
/*   LOCAL DEFINES           */
/*****************************/


/*****************************/
/*   STATIC VARIABLES        */
/*****************************/



/*****************************/
/*   IMPLEMENT SECTION       */
/*****************************/

/*********************************************************************/
/*                                                                   */
/*                       Test Chromatograph                          */
/*                       ------------------                          */
/*  The test chromatogram, or test plot, is used to calibrate various*/
/*  data collection systems and verify their operation.  This signal */
/*  is defined to have the following characteristics:                */
/*                                                                   */
/*  1) The first peak has an area of 1 V-s.  Where 1mV = 240 counts  */
/*  2) The second peak height is 1/10th of the first                 */
/*  3) The third peak height is 1/100th of the first                 */
/*  4) The first peak has a retention time of .25 minutes            */
/*  5) Each peak has a retention time .5 minutes after the preceeding*/
/*     peak.                                                         */
/*  6) The test plot begins when a run is started.                   */
/*  7) After the test plot has finished generating the third and     */
/*     smallest peak it repeats the sequence indefinitely until      */
/*     the run is stopped.                                           */
/*                                                                   */
/*********************************************************************/

const PROFILE TEST_PLOT_PROFILE =
{
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  6,
  12,
  22,
  31,
  40,
  56,
  71,
  86,
  108,
  130,
  160,
  194,
  228,
  278,
  330,
  386,
  453,
  527,
  617,
  719,
  824,
  959,
  1098,
  1258,
  1450,
  1641,
  1878,
  2137,
  2406,
  2739,
  3081,
  3461,
  3902,
  4355,
  4879,
  5447,
  6036,
  6727,
  7436,
  8207,
  9080,
  9959,
  10952,
  12004,
  13090,
  14308,
  15557,
  16874,
  18315,
  19764,
  21337,
  22975,
  24641,
  26436,
  28249,
  30128,
  32093,
  34070,
  36111,
  38196,
  40291,
  42428,
  44575,
  46725,
  48868,
  51012,
  53112,
  55188,
  57242,
  59188,
  61119,
  62964,
  64675,
  66372,
  67889,
  69305,
  70665,
  71773,
  72830,
  73737,
  74407,
  75045,
  75424,
  75646,
  75807,
  0                                     /* 101 */
};  

const PROFILE TEST_PLOT_PROFILE2 =
{
  75807,
  75646,
  75424,
  75045,
  74407,
  73737,
  72830,
  71773,
  70665,
  69305,
  67889,
  66372,
  64675,
  62964,
  61119,
  59188,
  57242,
  55188,
  53112,
  51012,
  48868,
  46725,
  44575,
  42428,
  40291,
  38196,
  36111,
  34070,
  32093,
  30128,
  28249,
  26436,
  24641,
  22975,
  21337,
  19764,
  18315,
  16874,
  15557,
  14308,
  13090,
  12004,
  10952,
  9959,
  9080,
  8207,
  7436,
  6727,
  6036,
  5447,
  4879,
  4355,
  3902,
  3461,
  3081,
  2739,
  2406,
  2137,
  1878,
  1641,
  1450,
  1258,
  1098,
  959,
  824,
  719,
  617,
  527,
  453,
  386,
  330,
  278,
  228,
  194,
  160,
  130,
  108,
  86,
  71,
  56,
  40,
  31,
  22,
  12,
  6,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0                                     /* 101 */
}; 


#define MINVAL  (-1024)
#define INCR    (0x7ffffff/50)
 
const PROFILE TEST_SIG_PROFILE =
{
MINVAL,
MINVAL+1*INCR,
MINVAL+2*INCR,
MINVAL+3*INCR,
MINVAL+4*INCR,
MINVAL+5*INCR,
MINVAL+6*INCR,
MINVAL+7*INCR,
MINVAL+8*INCR,
MINVAL+9*INCR,
MINVAL+10*INCR,
MINVAL+11*INCR,
MINVAL+12*INCR,
MINVAL+13*INCR,
MINVAL+14*INCR,
MINVAL+15*INCR,
MINVAL+16*INCR,
MINVAL+17*INCR,
MINVAL+18*INCR,
MINVAL+19*INCR,
MINVAL+20*INCR,
MINVAL+21*INCR,
MINVAL+22*INCR,
MINVAL+23*INCR,
MINVAL+24*INCR,
MINVAL+25*INCR,
MINVAL+26*INCR,
MINVAL+27*INCR,
MINVAL+28*INCR,
MINVAL+29*INCR,
MINVAL+30*INCR,
MINVAL+31*INCR,
MINVAL+32*INCR,
MINVAL+33*INCR,
MINVAL+34*INCR,
MINVAL+35*INCR,
MINVAL+36*INCR,
MINVAL+37*INCR,
MINVAL+38*INCR,
MINVAL+39*INCR,
MINVAL+40*INCR,
MINVAL+41*INCR,
MINVAL+42*INCR,
MINVAL+43*INCR,
MINVAL+44*INCR,
MINVAL+45*INCR,
MINVAL+46*INCR,
MINVAL+47*INCR,
MINVAL+48*INCR,
MINVAL+49*INCR,
MINVAL+50*INCR,
MINVAL+49*INCR,
MINVAL+48*INCR,
MINVAL+47*INCR,
MINVAL+46*INCR,
MINVAL+45*INCR,
MINVAL+44*INCR,
MINVAL+43*INCR,
MINVAL+42*INCR,
MINVAL+41*INCR,
MINVAL+40*INCR,
MINVAL+39*INCR,
MINVAL+38*INCR,
MINVAL+37*INCR,
MINVAL+36*INCR,
MINVAL+35*INCR,
MINVAL+34*INCR,
MINVAL+33*INCR,
MINVAL+32*INCR,
MINVAL+31*INCR,
MINVAL+30*INCR,
MINVAL+29*INCR,
MINVAL+28*INCR,
MINVAL+27*INCR,
MINVAL+26*INCR,
MINVAL+25*INCR,
MINVAL+24*INCR,
MINVAL+23*INCR,
MINVAL+22*INCR,
MINVAL+21*INCR,
MINVAL+20*INCR,
MINVAL+19*INCR,
MINVAL+18*INCR,
MINVAL+17*INCR,
MINVAL+16*INCR,
MINVAL+15*INCR,
MINVAL+14*INCR,
MINVAL+13*INCR,
MINVAL+12*INCR,
MINVAL+11*INCR,
MINVAL+10*INCR,
MINVAL+9*INCR,
MINVAL+8*INCR,
MINVAL+7*INCR,
MINVAL+6*INCR,
MINVAL+5*INCR,
MINVAL+4*INCR,
MINVAL+3*INCR,
MINVAL+2*INCR,
MINVAL+1*INCR,
MINVAL,
MINVAL
};  

